<?php
namespace Home\Model;
use Think\Model\RelationModel;
class CommentModel extends RelationModel{
	protected $_validate = array(
//array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间]),
		array("email","require","邮箱不能为空!","1","","3"),
		array("comment_rank","require","评价等级不能为空!","1","","3"),
		// array("content","require","评论内容不能为空!","1","","3"),
		// array("captcha","require","验证码不能为空!","1","","3"),
		array("email","email","邮箱格式不对","1","","3"),
		//callback验证调用函数是否为true和false
		
		);
}